/* 用户认证系统 - 统一样式文件 */

/* CSS变量定义 */
:root {
    --primary-color: #4e73df;
    --secondary-color: #858796;
    --success-color: #1cc88a;
    --danger-color: #e74a3b;
    --warning-color: #f6c23e;
    --info-color: #36b9cc;
}

/* 主容器样式 */
.auth-container {
    max-width: 450px;
    margin: 80px auto;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fc 100%);
    border: 1px solid #e3e6f0;
    animation: fadeInUp 0.6s ease-out;
}

/* 应用标题 */
.app-title {
    text-align: center;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 30px;
    font-size: 2rem;
}

/* 表单控件样式 */
.form-control {
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
    transform: translateY(-2px);
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #224abe);
    border: none;
    padding: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 115, 223, 0.4);
}

.btn-primary:disabled {
    background: var(--secondary-color);
    transform: none;
    box-shadow: none;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

/* 警告框样式 */
.alert {
    border-radius: 10px;
    border: none;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(45deg, var(--success-color), #17a673);
    color: white;
}

.alert-danger {
    background: linear-gradient(45deg, var(--danger-color), #be2617);
    color: white;
}

.alert-warning {
    background: linear-gradient(45deg, var(--warning-color), #dda20a);
    color: white;
}

.alert-info {
    background: linear-gradient(45deg, var(--info-color), #258391);
    color: white;
}

/* 标签页样式 */
.tab-content {
    padding: 20px 0;
}

.nav-tabs {
    border: none;
    margin-bottom: 20px;
}

.nav-tabs .nav-link {
    border: none;
    color: var(--secondary-color);
    font-weight: 600;
    padding: 12px 25px;
    border-radius: 25px;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: var(--primary-color);
    background: rgba(78, 115, 223, 0.1);
}

.nav-tabs .nav-link.active {
    color: white;
    background: var(--primary-color);
    border: none;
}

/* 输入组样式 */
.input-group-text {
    background: #f8f9fc;
    border: 1px solid #e3e6f0;
    color: var(--primary-color);
}

/* 辅助文本样式 */
.password-strength {
    font-size: 0.875rem;
    font-weight: 600;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

.form-text {
    color: var(--secondary-color);
    font-size: 0.875rem;
}

/* 错误提示样式 */
.is-invalid {
    border-color: var(--danger-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(231, 74, 59, 0.25) !important;
}

.invalid-feedback {
    color: var(--danger-color);
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 5px;
    display: flex;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

.invalid-feedback i {
    font-size: 0.75rem;
}

/* 功能列表样式 */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.feature-list li {
    padding: 8px 0;
    color: var(--secondary-color);
}

.feature-list li i {
    color: var(--success-color);
    margin-right: 10px;
}

/* 动画定义 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .auth-container {
        margin: 20px;
        padding: 25px;
    }

    .app-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    .auth-container {
        margin: 20px auto;
        padding: 20px;
    }
}